<template>
  <view class="login-content"> </view>
</template>

<script>
import mRequest from "@/api/index";
import hccmStore from "@/common/hccm-store.js";
import hccmConfig from "@/common/hccm-config.js";
export default {
  data() {
    return {
      action: "", //
      phone: "", //
      hospId: "",
      prescriptionIds: "",
    };
  },
  onLoad(options) {
    // 检测版本 bak
    let that = this;
    uni.showLoading({
      title: "正在加载...",
    });
    this.toUrlByAction()
  },
  methods: {
    // 获取版本
    getVersion() {},

    // TODO 需要判断进start页面得时候进哪个页面，现在暂时是home-main
    toUrlByAction() {
      //
      if (this.action == "order") {
        console.log(aaa)
      } else {
        uni.redirectTo({
          //关闭当前页面，跳转到应用内的某个页面。
          url: `/pages/downLoadPDF`,
        });
      }
    },
  },
};
</script>

<style lang="scss">
.login-content {
  background-color: #fff;
}
</style>
